package asteroids.model.programs.Statement;

/**
* 
* @version 0.3
* @author  Tandan Sunil, Van Deun Luca
*
*/
public abstract class LoopStatement extends LargeStatement {

	public LoopStatement(int line, int column, Statement body) {
		super(line, column);
		this.body = body;
		if(body == null)
			throw new IllegalArgumentException();
	}
	
	private Statement body;
	public Statement getBody(){
		return body;
	}
	
	@Override
	public void setExecuted(boolean executed){
	super.setExecuted(executed);
	getBody().setExecuted(executed);
	}

}
